package org.coco.util;

import java.lang.reflect.Method;

public class CommonUtil {

    public static  boolean isMethodName(Method method) {
        String methodName = method.getName();
        if(methodName.equals("wait") || methodName.equals("equals") ||
                "toString".equals(methodName) || "hashCode".equals(methodName) ||
                "getClass".equals(methodName) || "notify".equals(methodName) || "notifyAll".equals(methodName)) {
            return true;
        }
        return false;
    }
}
